Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Tabs): ✨ New Tabs Component #876

Merged
merged 39 commits into from
Oct 5, 2023
Merged

feat(Tabs): ✨ New Tabs Component #876

merged 39 commits into from
Oct 5, 2023

Conversation

Magnusrm
Copy link
Contributor

@Magnusrm Magnusrm commented Sep 29, 2023

Resolves: #872

Base automatically changed from feat/make-tabs-legacy to main October 2, 2023 08:16
@Magnusrm Magnusrm force-pushed the feat/tabs-component branch from 769f178 to 1f02ebe Compare October 2, 2023 12:08
@Magnusrm Magnusrm added the 📔 storybook storybook.designsystemet.no label Oct 2, 2023
@Magnusrm Magnusrm marked this pull request as ready for review October 3, 2023 05:38
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2023

Storybook preview deployment is available at https://storybook-8xevsz1h1-designsystemet.vercel.app

@Magnusrm Magnusrm marked this pull request as draft October 3, 2023 06:07
Copy link
Collaborator

@mimarz mimarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work here! Some code and docs comments :)

I would also suggest simpler names for the subcomponents (This was probably due to the legacy component).

TabItem -> Tab
TabItemList -> TabList

<RovingTabindexItem
{...rest}
{...buttonProps}
as={'button'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also just pass our own Button into the as prop here. It would save us for a lot of repitition. But maybe save that for later as we have planned to do changes to the Button and its api now 😅

packages/react/src/components/Tabs/TabItem/TabItem.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/TabItem/TabItem.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/Tabs.stories.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/Tabs.module.css Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/TabItem/TabItem.tsx Outdated Show resolved Hide resolved
packages/react/src/components/Tabs/TabItem/useTabItem.ts Outdated Show resolved Hide resolved
@Magnusrm Magnusrm marked this pull request as ready for review October 5, 2023 06:38
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

Storybook preview deployment is available at https://storybook-cpx5a1lth-designsystemet.vercel.app

Copy link
Collaborator

@mimarz mimarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Magnusrm Magnusrm merged commit 6ae19e7 into main Oct 5, 2023
3 checks passed
@Magnusrm Magnusrm deleted the feat/tabs-component branch October 5, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📔 storybook storybook.designsystemet.no
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tabs improvements (react)
2 participants